package com.goods.common.model.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.lang.annotation.Target;
import java.util.Date;

/**
 * @Author: 赵勇镔
 * @Time: 2021/6/8 13:04
 * @Description:
 */
@Data
@Table(name = "biz_consumer")
public class Consumer {


    @Id
    private Long id;


    private String name;


    private String address;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;


    private String phone;

    private  Integer sort;


    private String contact;
}
